#include <iostream>
#include <memory>

class MyTest{
private:
    std::string a;
    int b;
public:
    MyTest(std::string a,int b):a(a),b(b){}
    ~MyTest(){
        std::cout<<"析构函数被调用";
    }
};
int main(){
    std::shared_ptr<MyTest> mt1(new MyTest("a",10));
}